/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;


import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;


public class Material implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private String typematerial;
    private List<Product> productList;  
    private List<Supplier> SupplierList;

    public Material() {
    }

    public Material(String typematerial) {
        this.typematerial = typematerial;
    }

    
    public String getTypematerial() {
        return typematerial;
    }

    public void setTypematerial(String typematerial) {
        this.typematerial = typematerial;
    }

    @XmlTransient
    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    @XmlTransient
    public List<Supplier> getSupplierList() {
        return SupplierList;
    }

    public void setSupplierList(List<Supplier> SupplierList) {
        this.SupplierList = SupplierList;
    }
    
    
      
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (typematerial != null ? typematerial.hashCode() : 0);
        return hash;
    }
    
    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Material)) {
            return false;
        }
        Material other = (Material) object;
        if ((this.typematerial == null && other.typematerial != null) || (this.typematerial != null && !this.typematerial.equals(other.typematerial))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.Material[ typematerial=" + typematerial + " ]";
    }
}
